import { resultSuccess } from "../_util";

const projects = [
  {
    title: "Github",
    subTitle: "是一个面向开源及私有软件项目的托管平台。",
    desc: "开源君 2020-01-01",
    icon: "GithubOutlined",
    color: "",
  },
  {
    title: "Vue",
    subTitle: "渐进式JavaScript框架。",
    desc: "学不动也要学 2020-01-01",
    icon: "LogoVue",
    color: "#42b983",
  },
  {
    title: "Html5",
    subTitle: "Html5是互联网的下一代标准。",
    desc: "撸码也是一种艺术 2020-01-01",
    icon: "Html5Outlined",
    color: "#e44c27",
  },
  {
    title: "Angular",
    subTitle: "现代 Web 开发平台，百万粉丝热捧。",
    desc: "铁粉君 2020-01-01",
    icon: "LogoAngular",
    color: "#dd0031",
  },
  {
    title: "React",
    subTitle: "用于构建用户界面的JavaScript库。",
    desc: "技术牛 2020-01-01",
    icon: "LogoReact",
    color: "#61dafb",
  },
  {
    title: "JavaScript",
    subTitle: "路是走出来的，而不是空想出来的。",
    desc: "架构组 2020-01-01",
    icon: "LogoJavascript",
    color: "#61dafb",
  },
];

const dynamicItems = [
  {
    title: "Ah Jung 刚才把工作台页面随便写了一些，凑合能看了！",
    time: "2021-07-04 22:37:16",
  },
  {
    title: "Ah Jung 在 开源组 创建了项目 naive-ui-admin？",
    time: "2021-07-04 22:37:16",
  },
  {
    title: "@It界风清扬，向naive-ui-admin提交了一个bug，抽时间看看吧！",
    time: "2021-07-04 22:37:16",
  },
  {
    title: "技术部那几位童鞋，再次警告，不要摸鱼，不要摸鱼，不要摸鱼啦！",
    time: "2021-07-04 22:37:16",
  },
  {
    title: "上班不摸鱼，和咸鱼有什么区别（这话真不是我说的哈）！",
    time: "2021-07-04 22:37:16",
  },
  {
    title: "页面切换其实也支持缓存，只是加了过度效果，看起来像是重新渲染了",
    time: "2021-07-04 22:37:16",
  },
];

export default [
  {
    url: "/dashboard/workplace/getProjects",
    timeout: 1000,
    method: "get",
    response: () => {
      return resultSuccess(projects);
    },
  },
  {
    url: "/dashboard/workplace/getDynamicItems",
    timeout: 1000,
    method: "get",
    response: () => {
      return resultSuccess(dynamicItems);
    },
  },
];
